package othello.client.playroom;

/**
 * 位置情報を表すクラス
 */
public final class Position {
	final int x;

	final int y;

	public Position(int x, int y) {
		this.x = x;
		this.y = y;
	}

	@Override
	public boolean equals(Object another) {
		return (another instanceof Position) ? this.equals(another) : false;
	}

	public boolean equals(Position another) {
		return (this.x == another.x && this.y == another.y);
	}
}